-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix theme toggle JavaScript and A11y #1628
Conversation
docs/assets/js/color-modes.js
Outdated
@@ -5,8 +5,6 @@ | |||
*/ | |||
|
|||
(() => { | |||
'use strict' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linting is not happy with this removal. I can reintroduce it if needed or we should change the rules. As you wish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's needed here because the JS docs files here are treated as CJS and not modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Based on twbs/blog#355, same modifications:
--bs-dropdown-min-width
definition from upstreamIt is now:
It was (https://icons.getbootstrap.com/ in light mode):